<template>
    <div id="dialog-container">
        <el-dialog v-dialogDrag 
            title="详情" append-to-body
            :visible.sync="dialogVisible" @close="$emit('update:show', false)" :before-close="handleClose" :show="show"
            :close-on-click-modal="false" width="760px">
            <el-form :model="form" :inline="true" size="small" label-width="130px">
                <el-row>
                    <el-col :span="12">
                        <el-form-item label="任务类型：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="申请人：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="申请单位：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="申请日期：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="变更部门：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="变更状态：">
                            <el-input v-model="form.name" disabled></el-input>
                        </el-form-item>
                    </el-col>
                </el-row>
                <el-row>
                    <el-table :data="tableData" size="small" border stripe height="350" style="width: 96%;margin: 10px 25px;">
                        <el-table-column type="index" label="序号" align="center" :resizable="false" width="50"></el-table-column>
                        <el-table-column prop="size" label="现有状态" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="变更状态" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="器具名称" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="现用部门" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="变更部门" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="分类代码" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="统一编号" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="型号" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="申请人" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="申请单位" :resizable="false" min-width="180"></el-table-column>
                        <el-table-column prop="result" label="申请日期" :resizable="false" min-width="180"></el-table-column>
                    </el-table>
                </el-row>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="dialogVisible = false">关 闭</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                dialogVisible: this.show,
                form: {
                    name: '',
                    data: ''
                },
                tableData: []
            }
        },
        props: {
            show: {
                type: Boolean,
                default: false
            }
        },
        watch: {
            show() {
                this.dialogVisible = this.show;
            }
        },
        methods: {
            handleClose() {
                this.dialogVisible = false;
            }
        }
    }
</script>

